import request from '@/utils/request'

export function role_index(params) {
  return request({
    url: '/role/index',
    method: 'get',
    params
  })
}

export function role_add(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data:data
  })
}

export function role_edit(data) {
  return request({
    url: '/role/edit',
    method: 'post',
    data:data
  })
}

export function role_delete(data) {
  return request({
    url: '/role/delete',
    method: 'post',
    data:data
  })
}

export function role_auth(params) {
  return request({
    url: '/role/auth',
    method: 'get',
    params
  })
}

export function role_accredit(data) {
  return request({
    url: '/role/accredit',
    method: 'post',
    data:data
  })
}